package com.nercel.dsj.gksales.service;

import com.nercel.dsj.gksales.model.entity.Configuration;

import java.util.List;
import java.util.Map;


public interface ConfigurationService {

	List<Configuration> list(String name, String type);

	Configuration getConfigurationById(int id);

	Configuration getConfigurationByName(String name);

	String getAsString(String name);

	Integer getAsInteger(String name);

	Configuration getConfigurationByLast();
	
	void saveConfiguration(Configuration configuration);
	
	void updateConfiguration(Configuration configuration);
	
	void deleteConfiguration(int id);

	Map<String,Configuration> getConfigurationMap(Boolean updateRedisFlg);

	Map<String,Object> getConfigurationStringMap(Boolean updateRedisFlg);

}

